From: Bernd Zeimetz Date: Mon, 12 May 2014 23:57:35 +0000 (+0200) Subject: Add menu and desktop files for gpsbabel-gui. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~149 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d7bbdd34cb69925ba0858fb192aab053cb1627b0;p=gpsbabel.git Add menu and desktop files for gpsbabel-gui. Closes: #592799 Thanks: Julien Valroff --- diff --git a/debian/control b/debian/control index 0a6a0cc9f..04db97f4b 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,8 @@ Build-Depends: debhelper (>= 7.0.0), quilt, libexpat1-dev, expat, help2man, libxml2-utils, libusb-dev, zlib1g-dev, - libqtwebkit-dev | libqt4-dev (<= 4:4.7.0~beta1), libqt4-dev (>= 4:4.4.3) + libqtwebkit-dev | libqt4-dev (<= 4:4.7.0~beta1), libqt4-dev (>= 4:4.4.3), + imagemagick Build-Depends-Indep: fop [!mips], xsltproc, docbook-xml, docbook-xsl, libpaper-dev Standards-Version: 3.8.4 diff --git a/debian/gpsbabel-gui.desktop b/debian/gpsbabel-gui.desktop new file mode 100644 index 000000000..31fbb851e --- /dev/null +++ b/debian/gpsbabel-gui.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=GPSBabel +Comment= +Exec=gpsbabelfe +Terminal=false +StartupNotify=no +Icon=gpsbabel.xpm +Categories=Education;Science;Geoscience diff --git a/debian/gpsbabel-gui.install b/debian/gpsbabel-gui.install index 9573ca72f..5f5efb82a 100644 --- a/debian/gpsbabel-gui.install +++ b/debian/gpsbabel-gui.install @@ -1 +1,3 @@ gpsbabel/gui/objects/gpsbabelfe /usr/bin +debian/gpsbabel.xpm /usr/share/pixmaps +debian/gpsbabel-gui.desktop /usr/share/applications diff --git a/debian/gpsbabel-gui.menu b/debian/gpsbabel-gui.menu new file mode 100644 index 000000000..6cae1da94 --- /dev/null +++ b/debian/gpsbabel-gui.menu @@ -0,0 +1,5 @@ +?package(gpsbabel-gui): needs="X11"\ + section="Applications/Science/Geoscience"\ + title="GPSBabel"\ + icon="/usr/share/pixmaps/gpsbabel.xpm"\ + command="/usr/bin/gpsbabelfe" diff --git a/debian/rules b/debian/rules index 219d8ddf4..193ac4eea 100755 --- a/debian/rules +++ b/debian/rules @@ -59,12 +59,15 @@ debian/gpsbabel.1: build-stamp gpsbabel/gui/Makefile: $(QUILT_STAMPFN) cd gpsbabel/gui && qmake-qt4 +debian/gpsbabel.xpm: gpsbabel/gui/images/appicon.png + convert -resize 32x32 $< $@ + BUILD_TARGETS_ARCH = build-stamp build-gui-stamp debian/gpsbabel.1 BUILD_TARGETS_INDEP = build-doc-stamp # indep targets are only built by binary-indep. build: $(BUILD_TARGETS_ARCH) -build-stamp: configure-stamp +build-stamp: configure-stamp debian/gpsbabel.xpm dh_testdir # Add here commands to compile the package. @@ -99,6 +102,7 @@ clean-patched: dh_testroot rm -f *-stamp gpsbabel/dep gpsbabel/doc/*.ps rm -rf gpsbabel/xmldoc/autogen + rm -f debian/gpsbabel.xpm # Add here commands to clean up after the build process. [ ! -f gpsbabel/Makefile ] || $(MAKE) -C gpsbabel clean @@ -166,6 +170,7 @@ binary-arch: build-arch install-arch dh_installchangelogs -a dh_installdocs -a dh_installman -a + dh_installmenu -a dh_strip -a dh_compress -a dh_fixperms -a